#include "IMaterial.h"

void IMaterial::AlphaModulate(float Alpha)
{
	typedef void (__thiscall *AlphaModulate_t) (void*, float Alpha);
	VMTWrapper::getfunction<AlphaModulate_t>(this, MATERIAL_ALPHAMODULATE)(this, Alpha);
}

void IMaterial::SetMaterialVarFlag(MaterialVarFlags_t flag, bool on)
{
	typedef void (__thiscall *SetMaterialVarFlag_t) (void*, MaterialVarFlags_t flag, bool on);
	VMTWrapper::getfunction<SetMaterialVarFlag_t>(this, MATERIAL_SETMATERIALVARFLAG)(this, flag, on);
}